<template>
  <el-container style="height:100vh;">
  <el-header style="border-radius:6px;">
    <el-button type="primary" round @click="videoPlay" style="float:left;margin-left: 10px;margin-top: 10px;" class="custom-button">科普视频</el-button>
    <el-button type="success" round @click="message" style="float:left;margin-top: 10px;" class="custom-button">装载详情</el-button>
    <el-button type="info" round @click="search" style="float:left;margin-top: 10px;" class="custom-button">垃圾查询</el-button>
    <div style="">
      <img src="../logo.png" alt="" style="transform:translateY(-18px);float: right;">
      <span style="color:grey;font-size:26px;float: right;margin-top: 26px;margin-right: 16px;font-family:Arial, Helvetica, sans-serif;">“智能垃圾分类,生活更加美好”</span>
    </div>
  </el-header>
  <el-main style="margin:0;border-radius: 15px;">
    <router-view></router-view>
  </el-main>
</el-container>
</template>


<script>
export default {
  name: 'HomeView',
  components: {
   
  },
  methods:{
    videoPlay(){
      this.$router.push('/video')
    },
    message(){
      this.$router.push('/message')
    },
    search(){
      this.$router.push('/search')
    }
  }
}
</script>

<style scoped>
.custom-button {
  width: 128px;
  height: 45px;
  font-size:22px;
}

</style>

